package com.lb.action;


import java.util.List;


import com.lb.bean.User;
import com.lb.service.AdminService;
import com.opensymphony.xwork2.ActionSupport;

public class UserManagerAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private User user;
	private AdminService service;
	private List<User> allUser;
	
	

	public User getUser() {
		return user;
	}



	public void setUser(User user) {
		this.user = user;
	}



	public AdminService getService() {
		return service;
	}



	public void setService(AdminService service) {
		this.service = service;
	}



	public List<User> getAllUser() {
		return allUser;
	}



	public void setAllUser(List<User> allUser) {
		this.allUser = allUser;
	}



	public String execute() throws Exception {
		this.clearActionErrors();	
		allUser=this.service.findAllUser();   
		return SUCCESS;
	
	}
}


